package com.aia.prm.web.ria.app.ui.iframe;

import org.apache.log4j.Logger;

import com.aia.prm.web.ria.app.PrmApplication;
import com.vaadin.terminal.ExternalResource;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.VerticalLayout;

@SuppressWarnings("serial")
public class IframeView extends VerticalLayout {
	private static final Logger logger = Logger.getLogger(IframeView.class);
	private PrmApplication app = null;

	public IframeView(PrmApplication aapp) {
		app = aapp;
		buildMainLayout();
		load();
	}

	void load() {
	}

	private void buildMainLayout() {

		setSizeFull();
		// setSizeUndefined();
		// VerticalLayout v = new VerticalLayout();

		Embedded e = new Embedded(null, new ExternalResource("../sanity/newimage_input.action"));
		e.setAlternateText("Vaadin web site");
		e.setType(Embedded.TYPE_BROWSER);
//		e.setWidth("100%");
//		e.setHeight("500px");
		e.setSizeFull();
		// v.addComponent(e);
		addComponent(e);

	}

}
